﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QApplication>
#include <QKeyEvent>
#include <QWebEngineView>
#include <QWebEnginePage>
#include <QWebEngineSettings>
#include <QDesktopWidget>
#include <QMessageBox>
#include <QIcon>
#include <QDebug>

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = 0);
    ~Widget();

private:
    QWebEngineView *view;

private:
    void init();
    void resourceInit();

    void resizeEvent(QResizeEvent*);
    void closeEvent(QCloseEvent *event);
    void keyPressEvent(QKeyEvent *event);

//public:
//    int ChMessageOkOrCancel(QString title, QString info);
};

#endif // WIDGET_H
